package src.com.unapec.seguridad.models;

import java.security.*;
import java.math.*;


public class Encrypt {

		
		public static String encryptText(String text) {		
			MessageDigest m = null;
			try {
				m = MessageDigest.getInstance("MD5");
				m.update(text.getBytes(), 0, text.length());
			} catch (NoSuchAlgorithmException e) {			
				e.printStackTrace();
			}
			return new BigInteger(1, m.digest()).toString(16);
			
		}
		
	}

